home *** CD-ROM | disk | FTP | other *** search
- * 12.asm And, or, xor version 0.00 1.9.97
-
- moveq #1,d3
- and.b #1,d3
- move.b #$81,d0 ;D0= %10000001 0&0=1 0&1=0 1&0=0 1&1=1
- and.b #$41,d0 ;#41=%01000001 result %00000001
- move.b #$81,d1 ;D1= %10000001 0!0=0 0!1=1 1!0=1 1!1=1
- or.b #$41,d1 ;#41=%01000001 result %11000001
- move.b #$81,d2 ;D2= %10000001 0eor0=0 0eor1=1 1eor0=1 1eor1=0
- eor.b #$41,d2 ;#41=%01000001 result %11000000
- rts
-